package com.bootdoolvillage.wow.api.execution;

import org.json.JSONArray;

import com.bootdoolvillage.wow.api.auction.collect.DataCollector;
import com.bootdoolvillage.wow.api.config.BattleNetConfiguration;
import com.bootdoolvillage.wow.api.config.ConfigurationLoader;
import com.bootdoolvillage.wow.api.util.URLFactory;

public class Starter {
	public static void main(String[] args) {
		BattleNetConfiguration configuration = new BattleNetConfiguration(
				ConfigurationLoader.readProperties());
		URLFactory factory = new URLFactory(configuration);
		DataCollector collector = new DataCollector(factory);
		JSONArray value = collector.auctions("아즈샤라");
		System.out.println(value.length());
	}
}
